package com.yunyike.service;

import java.util.List;

import com.yunyike.dto.MerchandiseSearchDTO;
import com.yunyike.model.Merchandise;
import com.yunyike.utils.mybatis.PageBean;

public interface IMerchandiseService {

	public Merchandise findMerchandiseByNumber(String number);
	
	public Merchandise findMerchandiseById(String merchandiseId);
	
	public Merchandise findMerchandiseByBarCode(String barCode);
	
	public int addMerchandise(Merchandise merchandise);
	
	public int updateMerchandise(Merchandise merchandise);
	
	public List<Merchandise> findMerchandiseByIds(List<String> merchandiseIds);
	
	public List<Merchandise> findMerchandiseByShop(PageBean<String> pageBean);
	
	public List<Merchandise> findMerchandiseByCondition(String shopId,double weight);
	
	public List<Merchandise> findMerchandiseByCondition(PageBean<MerchandiseSearchDTO> pageBean);
	
	public List<Merchandise> findMerchandises();
}
